package com.example.mytayunapi.Controller;

import com.example.mytayunapi.Entity.RefundsInfo;
import com.example.mytayunapi.Service.RefundsInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@CrossOrigin
@RestController
@RequestMapping("refunds")
public class RefundsController {
    @Autowired
    private RefundsInfoService RefundsInfoService;

    //http://localhost:8080/refunds/add
    @PostMapping("/add")
    public Integer insertRefundsInfo(@RequestBody RefundsInfo refundsinfo){
        return RefundsInfoService.insertRefundsInfo(refundsinfo);
    }
}
